import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  plugins: [
    react({
       devTarget: 'es2022' 
    }),
    tailwindcss(),
  ],
  css: {
    postcss: './postcss.config.js' // 显式指定 PostCSS 配置路径
  },
  build: {
    target: 'es5'
  }
});
